﻿<Window x:Class="IsoSurface.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
		xmlns:d3="http://research.microsoft.com/DynamicDataDisplay/1.0"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
		<d3:TrackballDecorator>
			<d3:Interactive3DDecorator>
				<Viewport3D IsHitTestVisible="False" IsEnabled="False">

					<Viewport3D.Camera>
						<PerspectiveCamera Position="0 0 6" UpDirection="0 1 0"
                                   LookDirection="0 0 -1" FieldOfView="45">
						</PerspectiveCamera>
					</Viewport3D.Camera>

					<d3:Axes Extent="6"/>
					<d3:IsoSurface x:Name="isoSurface" Potential="56.5"/>

					<!--lights-->
					<ModelVisual3D>
						<ModelVisual3D.Content>
							<Model3DGroup>
								<AmbientLight Color="#7F7F7F"/>
								<DirectionalLight Color="#FFFFFFFF" Direction="0,0,-1"/>
								<DirectionalLight Color="#FFFFFFFF" Direction="-1,0,0"/>
								<DirectionalLight Color="#FFFFFFFF" Direction="0,-1,0"/>
							</Model3DGroup>
						</ModelVisual3D.Content>
					</ModelVisual3D>
					
				</Viewport3D>
			</d3:Interactive3DDecorator>
		</d3:TrackballDecorator>
	</Grid>
</Window>
